<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>测试HelloWorld</title>
	</head>

	<body>
		<div><span>Hello World!</span></div>
	</body>

	<script type="text/javascript">
		window.onload = function() {
			
			var span = document.getElementsByTagName("span")[0];
			span.removeChild(span.firstChild);
			span.appendChild(document.createTextNode("你好啊"));
		}
	</script>

</html>